package com.pool.common;

/**
 * @author claveld@gmail.com (David Clavel)
 */
public class Shoot {
  
  private static final String VICTORY = "VICTORY";
  
  public final String id;
  public final String description;
  public final int bonus;

  public Shoot(String id, String description, int bonus) {
    this.id = id;
    this.description = description;
    this.bonus = bonus;
  }

  public static boolean isVictory(String shootId) {
    return VICTORY.equals(shootId);
  }
  
  public boolean isVictory() {
    return isVictory(id);
  }
  
  @Override
  public String toString() {
    return id + "|" + description + "|" + bonus;
  }
}
